<?php /* Smarty version 2.6.26, created on 2013-09-09 15:37:41
         compiled from user_avatar.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'l', 'user_avatar.tpl', 8, false),array('modifier', 'thumb', 'user_avatar.tpl', 17, false),array('modifier', 'ltpl', 'user_avatar.tpl', 40, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "user-navi.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="site-wrap2 clearfix">
	<div class="box-edit">
		
		<?php echo $this->_tpl_vars['dzMessage']; ?>

		
		<form class="form-horizontal" method="post" enctype="multipart/form-data" action="<?php echo ((is_array($_tmp='user/avatar')) ? $this->_run_mod_handler('l', true, $_tmp) : smarty_modifier_l($_tmp)); ?>
">
			<div class="control-group" style="margin-left:70px">
				<h3 class="title">Thay đổi ảnh đại diện</h3>
				<span>Chọn ảnh từ máy tính của bạn (định dạng JPG, GIF hoặc PNG)</span>
			</div>
			<div class="control-group">
				<div class="fileupload fileupload-new" data-provides="fileupload">
					<div class="fileupload-new thumbnail control-label" style="width: 140px; height: 140px; margin-left:70px;">
					
						<?php if ($this->_tpl_vars['u']['user_avatar'] != ''): ?><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['u']['user_avatar'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'crop140x140') : smarty_modifier_thumb($_tmp, 'crop140x140')); ?>
" /><?php endif; ?>
						
					</div>
					<div class="fileupload-preview fileupload-exists thumbnail control-label" style="max-width: 140px; max-height: 140px; line-height: 20px; margin-left:70px"></div>
					<div class="controls">
						<span class="btn btn-file"><span class="fileupload-new">Chọn ảnh</span><span class="fileupload-exists">Thay ảnh</span><input type="file" name="user_avatar" /></span>
						<a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Xoá ảnh</a>
					</div>
				</div>
			</div>
			<div class="control-group">
				<div class="controls">
					<div class="formFooterButtons form-inline clearfix">
						<input type="submit" class="hasText Button color1 large ajax pull-left" value="Cập nhật" />
						<a href="<?php echo ((is_array($_tmp='<front>')) ? $this->_run_mod_handler('l', true, $_tmp) : smarty_modifier_l($_tmp)); ?>
" class="hasText Button color2 large ajax pull-left"> <span class="buttonText">Huỷ bỏ</span> </button>
					</div>
				</div>
			</div>
		</form>
	</div>
	<!--site conntainer--> 
</div>
<!-- js files -->
<script src="<?php echo ((is_array($_tmp='js/bootstrap-fileupload.min.js')) ? $this->_run_mod_handler('ltpl', true, $_tmp) : smarty_modifier_ltpl($_tmp)); ?>
" type="text/javascript" charset="utf-8"></script>